{% extends "vmbase.html" %}
{% block title %}OVIM - VMHOST DETAIL{% endblock %}

{% block navbar %}
<a class="navbar" href="/ovim/"> >> VMHost List</a>
<a class="navbar" href="/ovim/{{ object.id }}"> >> {{ object.name }}</a>
{% endblock %}

{% block action %}
<div class="action">
 	<h3>ACTIONS</h3>
	<div id="actionmenu">
		{% if object.name %}
		<ul>
			<li>
				<a href="../addvmhost/" title="Add a new VMHost to OVIM database.">
					<img src="/ovim/media/img/list-add.png"/>
					New VMHost
				</a>
			</li>	
			<li>
				<a href="listvms/" title="Manage {{ object.name }} Virtual Machine(s)">
					<img src="/ovim/media/img/document-open.png"/>
					Manage Virtual Machine(s)
				</a>
			</li>	
			<li>
				<a href="delete/" title="Delete {{ object.name }} Virtual Host">
					<img src="/ovim/media/img/edit-clear-16.png"/>
					Delete VMHost
				</a>
			</li>	
		</ul>
		{% else %}
			<ul>
				<li>
					<a href="/ovim/" title="Cancel">
						<img src="/ovim/media/img/process-stop.png"/>
						Cancel
					</a>
				</li>
			</ul>		
		{% endif %}
	</div>
 </div>
{% endblock %}

{% block content %}
	{% if error_message %}
	<p class="errornote">
		There was error(s) submiting this form...
	</p>
	{% endif %}
	
	<div class="ovim_content">
		<h3>VMHOST DETAIL</h3>
		<div class="ovim_content_box">
			<img src="/ovim/media/img/server_icon.gif" class="image" alt="Big Image" />
			<h2>{{ object.name }}</h2>
			<form method="post">
				<table>{{ form }}</table>
				<center><input type="submit" /></center>		
			</form>
		</div>
	</div>
{% endblock %}